package com.egreen.pointsmall.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.egreen.common.pojo.DTO.pointsmall.CartUpdateDTO;
import com.egreen.common.pojo.DTO.pointsmall.commitOrderDTO;
import com.egreen.common.pojo.VO.pointsmall.CartVO;
import com.egreen.common.pojo.entity.pointsmall.Cart;
import com.egreen.common.pojo.entity.pointsmall.Orders;
import com.egreen.common.pojo.entity.pointsmall.PointsUser;

import java.util.List;

/**
 * <p>
 * 购物车表 服务类
 * </p>
 *
 * @author yyf
 * @since 2023-04-05
 */
public interface ICartService extends IService<Cart> {
     boolean add(Cart cart);
     List<CartVO>getCartVoList(Integer userId);
     boolean updateCart(CartUpdateDTO cartUpdateDTO);
     boolean delete(Integer id);
     Orders commit(commitOrderDTO commitOrderDTO, PointsUser user);
}
